package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @Auther: zh
 * @Date: 2025/6/1 - 06 - 01 - 17:29
 * @Description: com.sky.service
 * @version: 2.1
 */
public interface ShoppingCartService {
    /**
     * 添加购物车
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     */
    void clean();

    /**
     * 删除购物车中一个商品
     */
    void delete(ShoppingCartDTO shoppingCartDTO);
}